home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
olrdrs
/
1st_111b.zip
/
SCRIPTS.ZIP
/
PCB-DL.SCR
< prev
next >
Wrap
Text File
|
1993-05-23
|
1KB
|
50 lines
' ┌───────────────────────────────────────┐
' │ PCBoard download script for 1stReader │
' │ Written by Mark Herring │
' │ May 15th, 1993 │
' └───────────────────────────────────────┘
REQ_SETFILE @API$(14)@API$(10).REQ
IF NOT REQ_EXIST GOTO DONE
KILL @API$(28)@API$(10).DL
COMMENT "@DATE@ @TIME@ Scanning for downloads from @API$(10).REQ"
:LOOP
REQ_NEXT
IF REQ_DONE GOTO DONE
IF NOT REQ_CONF GOTO DOWNLOAD
COMMENT "@DATE@ @TIME@ Joining conference @REQ_CONF@"
TRANSMIT "J @REQ_CONF@ Q^M"
WAITFOR "=yes?" 3
IF FOUND=1 TRANSMIT "N^M"
:DOWNLOAD
COMMENT "@DATE@ @TIME@ Requesting @REQ_FILE@"
TRANSMIT "D @REQ_FILE@ Z^M"
WAITFOR "aborts transfer|not found on disk|insufficient|download bytes left available" 30
IF FOUND=0 GOTO UNKNOWN
IF FOUND=2 GOTO NOTFOUND
IF FOUND=3 GOTO DONE
IF FOUND=4 GOTO DONE
DOWNLOAD @FILEDIR@@REQ_FILE@
WAITFOR "Transfer Successful" 30
IF FOUND=0 GOTO NEXTFILE
COMMENT "@DATE@ @TIME@ Transfer successful"
REQ_SET
GOTO LOOP
:UNKNOWN
REQ_SET "Could not locate file"
TRANSMIT "^M"
GOTO LOOP
:NOTFOUND
REQ_SET "File not found"
TRANSMIT "^M"
GOTO LOOP
:DONE
EXIT